package com.Day6.myhotel;

/**
 * Copyright (C), 2018-2021, 若若叶
 * Author: Hx162
 * Date: 2021/7/13 14:00
 * FileName: Room
 * Description: 模拟一个酒店的房间
 */
public class Room {
    //房间编号：例如201
    private int id;
    //房间种类：单人间，豪华间...
    private String type;
    //是否已经预定true:已经有人入住；false：未有人入住
    private Boolean free;

    public Room() {
    }

    public Room(int id, String type, Boolean free) {
        this.id = id;
        this.type = type;
        this.free = free;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Boolean getFree() {
        return free;
    }

    public void setFree(Boolean free) {
        this.free = free;
    }

    @Override
    public String toString() {
        return "Room{" +
                "id=" + id +
                ", type='" + type + '\'' +
                ", free=" + free +
                '}';
    }
}
